<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('报工单')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-report_id" class="form-control selectpicker" name="row[report_id]" data-rule="required">
                <option value="">请选择报工单</option>
                {volist name="reportList" id="report"}
                <option value="{$report.id}">{$report.report_code}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('成本类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-cost_type" class="form-control selectpicker" name="row[cost_type]" data-rule="required">
                <option value="inspection">检验</option>
                <option value="rework">返工</option>
                <option value="scrap">报废</option>
                <option value="prevention">预防</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('质量成本')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-quality_cost" class="form-control" name="row[quality_cost]" type="number" step="0.01" value="0.00" data-rule="required;number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
